package com.glink.manage.dto.user;


import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;


/**
 * @author qiushaoshan
 * @date 2021-12-06
 */
@Builder
@Data
@AllArgsConstructor
@NoArgsConstructor
public class LoginDTO {
    @ApiModelProperty(value = "账号", required = true)
    @NotBlank(message = "帐号不能为空")
    @Size(max = 128, message = "帐号长度不能超过128个字符")
    private String userName;

    @ApiModelProperty(value = "SM2加密后的密码", required = true)
    @Size(max = 1024)
    @NotBlank(message = "密码不能为空")
    private String password;
}
